/*
 * @Description:
 * @Author: 崔堂袁
 * @Date: 2021-04-16 16:12:00
 * @LastEditTime: 2021-05-10 09:02:43
 */
import { createRouter, createWebHistory } from 'vue-router'

import WelcomePage from '@/views/welcome/WelcomePage.vue'
import HelloWorld from '@/components/HelloWorld'

const routes = [
  {
    path: '/',
    redirect: '/welcome'
  },
  {
    path: '/helloWorld',
    name: 'helloWorld',
    component: HelloWorld
  },
  {
    path: '/welcome',
    name: 'Welcome',
    component: WelcomePage
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home/Home.vue')
  },
  {
    path: '/newDesign',
    name: 'newDesign',
    component: () => import('@/views/newDesign/NewDesign.vue')
  },
  {
    path: '/editDesign',
    name: 'editDesign',
    component: () => import('@/views/newDesign/NewDesign.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
